package com.ruoyi.common.core.domain.entity.system;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 自动航线对象 sys_shipline
 *
 * @author zjw
 * @date 2023-07-05
 */
public class SysShipline extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 自动航线id
     */
    private Long shiplineId;

    /**
     * 自动航线所属的景区id
     */
    @Excel(name = "自动航线所属的景区id")
    private Long scenicId;

    /**
     * 自动航线的名称。
     */
    private String shiplineName;

    /**
     * 由自动航线的所有坐标点组成的字符串，坐标点之间以英文逗号,分割。
     */
    @Excel(name = "由自动航线的所有坐标点组成的字符串，坐标点之间以英文逗号,分割。")
    private String coordinates;

    /**
     * 自动航线所有点的百度地图坐标点组成的字符串，坐标点之间以英文逗号,分割。
     */
    private String bdCoordinates;

    /**
     * 自动航线的坐标点个数
     */
    @Excel(name = "自动航线的坐标点个数")
    private Short coordinateNum;

    /**
     * 航线总长度，单位：米。保留2位小数。
     */
    private Double totalLength;

    /**
     * 自动航线状态（0正常 1停用）
     */
    @Excel(name = "自动航线状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    public String getBdCoordinates() {
        return bdCoordinates;
    }

    public void setBdCoordinates(String bdCoordinates) {
        this.bdCoordinates = bdCoordinates;
    }

    public String getShiplineName() {
        return shiplineName;
    }

    public void setShiplineName(String shiplineName) {
        this.shiplineName = shiplineName;
    }

    public Double getTotalLength() {
        return totalLength;
    }

    public void setTotalLength(Double totalLength) {
        this.totalLength = totalLength;
    }

    public void setShiplineId(Long shiplineId) {
        this.shiplineId = shiplineId;
    }

    public Long getShiplineId() {
        return shiplineId;
    }

    public void setScenicId(Long scenicId) {
        this.scenicId = scenicId;
    }

    public Long getScenicId() {
        return scenicId;
    }

    public void setCoordinates(String coordinates) {
        this.coordinates = coordinates;
    }

    @NotBlank(message = "航线坐标不能为空")
    public String getCoordinates() {
        return coordinates;
    }

    public void setCoordinateNum(Short coordinateNum) {
        this.coordinateNum = coordinateNum;
    }

    @NotNull(message = "航线坐标点个数不能为0")
    public Short getCoordinateNum() {
        return coordinateNum;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("shiplineId", getShiplineId())
                .append("scenicId", getScenicId())
                .append("shiplineName", getShiplineName())
                .append("coordinates", getCoordinates())
                .append("coordinateNum", getCoordinateNum())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
